Hand held device to perform a bit range isolation instruction

ABSTRACT

Receiving an instruction indicating a source operand and a destination operand. Storing a result in the destination operand in response to the instruction. The result operand may have: (1) first range of bits having a first end explicitly specified by the instruction in which each bit is identical in value to a bit of the source operand in a corresponding position; and (2) second range of bits that all have a same value regardless of values of bits of the source operand in corresponding positions. Execution of instruction may complete without moving the first range of the result relative to the bits of identical value in the corresponding positions of the source operand, regardless of the location of the first range of bits in the result. Execution units to execute such instructions, computer systems having processors to execute such instructions, and machine-readable medium storing such an instruction are also disclosed.

The present application is a continuation of U.S. patent applicationSer. No. 12/645,307, filed Dec. 22, 2009, entitled “BIT RANGE ISOLATIONINSTRUCTIONS, METHODS, AND APPARATUS.” U.S. patent application Ser. No.12/645,307 is hereby incorporated herein by reference.

BACKGROUND

Field

Various different embodiments relate to bit manipulation instructions,methods of executing the bit manipulation instructions, execution unitsto execute the bit manipulation instructions, or devices incorporatingsuch execution units. In particular, various different embodimentsrelate to bit range isolation instructions to isolate a range of bits,methods of executing the bit range isolation instructions, executionunits to execute the bit range isolation instructions, or devicesincorporating such execution units.

Background Information

General-purpose processors, special-purpose processors, controllers, andother devices execute instructions as specified by an instruction setarchitecture (ISA). The instructions allow the devices to perform a widevariety of different types of operations. One common type of operationis a bit manipulation operation.

Various different bit manipulation instructions are known. One known bitmanipulation instruction is the EXTR—Extract instruction. The EXTRinstruction is described in the Intel® Itanium® Architecture SoftwareDeveloper's Manual, Volume 3: Instruction Set Reference, Revision 2.2,January 2006, Document Number: 245319-005.

The EXTR instruction extracts a bit field specified by two immediatevalues, and right shifts the extracted bit field in order to rightjustify the extracted bit field in the destination. Such shifting of theextracted bit field in addition to extraction of the bit field in asingle instruction may tend to limit the speed and/or efficiency ofcertain data processing operations. Other bit manipulation instructionsrely on a table lookup, which tends to have long latency.

Due to the importance of quickly and/or efficiently processing data, newand different data manipulation instructions would be useful.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

The invention may best be understood by referring to the followingdescription and accompanying drawings that are used to illustrateembodiments of the invention. In the drawings:

FIG. 1 is a block flow diagram of an embodiment of a method ofprocessing an embodiment of a bit range isolation instruction.

FIG. 2 is a block diagram of an example embodiment of an instructionprocessing apparatus.

FIG. 3 illustrates a first example embodiment of a bit range isolationoperation according to a first example embodiment of a bit rangeisolation instruction.

FIG. 4 illustrates a second example embodiment of a bit range isolationoperation according to a second example embodiment of a bit rangeisolation instruction.

FIG. 5 illustrates a third example embodiment of a bit range isolationoperation according to a third example embodiment of a bit rangeisolation instruction.

FIG. 6 shows a description of a BZHI—Zero High Bits Starting withSpecified Bit Position instruction representing a particular exampleembodiment of a bit range isolation instruction.

FIG. 7 shows operation in pseudocode of a BZHI—Zero High Bits Startingwith Specified Bit Position instruction representing a particularexample embodiment of a bit range isolation instruction.

FIG. 8 is a block diagram of an example embodiment of bit rangeisolation logic.

FIG. 9 illustrates one particular example embodiment of a suitable32-bit general-purpose register set.

FIG. 10 illustrates another particular example embodiment of a suitable64-bit general-purpose register set.

FIG. 11 illustrates an EFLAGS register representing one suitable exampleembodiment of a status or flags register.

FIG. 12 is a block diagram of a first example embodiment of a suitablecomputer system.

FIG. 13 is a block diagram of a second example embodiment of a suitablecomputer system.

DETAILED DESCRIPTION

In the following description, numerous specific details, such asprocessor types, instruction implementation specifics, data types,register types, register arrangements, system configurations, and thelike, are set forth. However, it is understood that embodiments may bepracticed without these specific details. In other instances, well-knowncircuits, structures and techniques have not been shown in detail inorder not to obscure the understanding of this description.

There are varied situations in which the bits stored in the register orother storage location may include a string or range of bits ofinterest, along with one or more other strings or ranges of bits thatare not presently of interest or at least are not part of the range ofbits of interest. Representatively, the range of bits of interest mayrepresent a number or value upon which further processing is to beperformed. The bits that are not presently of interest may be regardedas unwanted bits or don't care bits. In one or more embodiments, therange of bits of interest may be isolated by zeroing or otherwisediscarding the unwanted bits while preserving the values of the bits inthe range of bits of interest. This may help to facilitate furtherprocessing of the range of bits of interest.

Embodiments pertain to new and useful bit range isolation instructions.Other embodiments pertain execution units to execute the bit rangeisolation instructions. Still other embodiments pertain togeneral-purpose processors, special-purpose processors, controllers, orother logic devices or instruction processing apparatus having suchexecution units or capable of executing such instructions. Furtherembodiments pertain to bit range isolation instructions stored on adisc, memory, or other tangible machine-readable medium.

FIG. 1 is a block flow diagram of an embodiment of a method 100 ofprocessing an embodiment of a bit range isolation instruction. Invarious embodiments, the method may be performed during use by ageneral-purpose processor, a special-purpose processor (e.g., a graphicsprocessor or a digital signal processor), a hardware accelerator (e.g.,a cryptographic accelerator), or another type of logic device orinstruction processing apparatus.

The bit range isolation instruction may be received at the processor orother apparatus, at block 101. In one or more embodiments, the bit rangeisolation instruction may indicate a source operand and a destinationoperand.

A result may be stored in the destination operand in response to the bitrange isolation instruction, at block 102. The result operand may have afirst range of bits and a second range of bits. The first range of bitsmay be such that each bit is identical in value to a bit of the sourceoperand in a corresponding position. The second range of bits may allhave a same value, regardless of values of bits of the source operand incorresponding positions. In one or more embodiments, all of the bits ofthe second range may be zeros. Alternatively, all of the bits of thesecond range may be ones.

Execution of the bit range isolation instruction may complete withoutshifting or otherwise moving the first range of the result relative tothe bits of identical value in the corresponding positions of the sourceoperand, at block 103. This may be true regardless of the location ofthe first range of bits in the result (e.g., even if the first range ofbits is an intermediate range of bits within the result). In one or moreembodiments, execution of the bit range isolation instruction may notinvolve a table lookup, which tends to have long latency.

There are several possible advantages of omitting such a shift or bitmovement operation from the bit range isolation instruction. For onething, the shift operation is not always needed. Moreover the shiftoperation may tend to increase the time for instruction execution and/ormay tend to increase the logic area/cost. Further, many ISAs alreadyhave a dedicated shift operation that may be used separately from thebit range isolation instruction. Other advantages will be discussedfurther below.

FIG. 2 is a block diagram of an example embodiment of an instructionprocessing apparatus 110. In one or more embodiments, the instructionprocessing apparatus may be a general-purpose processor. The processormay be any of various complex instruction set computing (CISC)processors, various reduced instruction set computing (RISC) processors,various very long instruction word (VLIW) processors, various hybridsthereof, or other types of processors entirely. In one or moreembodiments, the processor may be a general-purpose processor of thetype manufactured by Intel Corporation, of Santa Clara, Calif., althoughthis is not required. Specific examples of general-purpose processorsavailable from Intel Corporation include, but are not limited to, Intel®Core™ i7 processor Extreme Edition, Intel® Core™ i7 processor, Intel®Core™ i5 processor, Intel® Core™2 Extreme processor, Intel® Core™2 Quadprocessor, Intel® Core™2 Duo processor, Intel® Pentium® processor, andIntel® Celeron® processor.

Alternatively, the instruction processing apparatus may be aspecial-purpose processor. Representative examples of suitablespecial-purpose processors include, but are not limited to, networkprocessors, communications processors, cryptographic processors,graphics processors, co-processors, embedded processors, and digitalsignal processors (DSPs), to name just a few examples. These processorscan also be based on CISC, RISC, VLIW, hybrids thereof, or other typesof processors entirely.

In still other embodiments, the instruction processing apparatus may bea controller (e.g., a microcontroller), or other type of logic circuitcapable of processing instructions.

Referring again to FIG. 2, during use the instruction processingapparatus may receive an embodiment of a bit range isolation instruction112. By way of example, the bit range isolation instruction may bereceived from a memory or from software. The bit range isolationinstruction may represent a machine instruction or control signal thatis recognized by the instruction processing apparatus. The bit rangeisolation instruction may include an opcode or other instructionidentifier. The instruction processing apparatus may have specific orparticular circuitry or other logic (e.g., software combined withhardware and/or firmware) that is operable to store a result in responseto and/or as specified by the bit range isolation instruction.

The illustrated embodiment of the instruction processing apparatusincludes an instruction decoder 114. The decoder may receive and decodethe bit range isolation instruction. The decoder may generate and outputone or more micro-operations, micro-code entry points,microinstructions, other instructions, or other control signals, whichreflect, or are derived from, the original bit range isolationinstruction. The decoder may be implemented using various differentmechanisms. Examples of suitable mechanisms include, but are not limitedto, microcode read only memories (ROMs), look-up tables, hardwareimplementations, programmable logic arrays (PLAs), and the like.

The decoder is not a required component of the apparatus. In one or moreother embodiments, the apparatus may instead have an instructionemulator, an instruction translator, an instruction morpher, aninstruction interpreter, or other instruction conversion logic. Variousdifferent types of instruction emulators, instruction morphers,instruction translators, and the like, are known in the arts. Theinstruction conversion logic may receive the bit range isolationinstruction, emulate, translate, morph, interpret, or otherwise convertthe bit range isolation instruction, and output one or more instructionsor control signals corresponding to the original bit range isolationinstruction. The instruction conversion logic may be implemented insoftware, hardware, firmware, or a combination thereof. In some cases,some or all of the instruction conversion logic may be located off-diewith the rest of the instruction processing apparatus, such as aseparate die or in a system memory. In some cases, the instructionprocessing apparatus may have both the decoder and the instructionconversion logic.

Referring again to FIG. 2, the instruction processing apparatus includesan execution unit 116. By way of example, the execution unit may includean arithmetic logic unit, a logical unit, a bit manipulation capablefunctional unit, or the like.

In the illustrated embodiment, the execution unit is coupled with, orotherwise in communication with, an output of the decoder. The term“coupled” may mean that two or more elements are in direct electricalcontact or connection. However, “coupled” may also mean that two or moreelements are not in direct connection with each other, but yet stillco-operate or interact or communicate with each other (e.g., through anintervening component). As one example, the decoder and the executionunit may be coupled with one another through an intervening optionalbuffer or other component(s) known in the arts to possibly be coupledbetween a decoder and an execution unit.

As a result of the decoder decoding the bit range isolation instruction,the execution unit may receive one or more micro-operations, micro-codeentry points, microinstructions, other instructions, or other controlsignals, which reflect, or are derived from, the bit range isolationinstruction. Alternatively, the execution unit may receive and executeinstructions or control signals from the aforementioned instructionconversion logic. The execution unit may include circuitry or otherexecution logic (e.g., some combination of hardware, software, and/orfirmware) operable to execute the instructions or other control signalsderived from the bit range isolation instruction.

The execution unit may be operable, as a result of the bit rangeisolation instruction, to store a result at a destination operandindicated by the bit range isolation instruction. The result may have afirst range of bits and a second range of bits. In one or moreembodiments, in the first range of bits each bit may be identical invalue to a bit in a source operand indicated by the instruction in acorresponding position. In the second range of bits all of the bits mayhave a same value, regardless of values of bits of the source operand incorresponding positions. In one or more embodiments, the execution unitmay complete execution of the bit range isolation instruction withoutmoving the first range of the result relative to the bits of identicalvalue in the corresponding positions of the source operand, regardlessof the location of the first range of bits in the result (e.g., even ifthe first range of bits is an intermediate range of bits within theresult). Avoiding such shifting or moving of the first range of bitsduring execution of the bit range isolation instruction may help toincrease the speed and/or efficiency of certain data processingoperations.

The bit range isolation instruction may implicitly identify orexplicitly specify at least one source operand and a destinationoperand. In one or more embodiments, the bit range isolation instructionmay have a dedicated field or set of bits to explicitly specify thesource operand, the destination operand, or both. In one or moreembodiments, the bit range isolation instruction may implicitly orimpliedly identify one or more fixed registers or other storagelocations for the source operand, the destination operand, or both. Inone or more embodiments, a storage location used for the source operandmay also optionally be used for the destination operand such that theresult may overwrite the source data.

In one or more embodiments, some or all of the source and destinationoperands may be stored in registers of a register set 118. The registerset may be part of a register file, along with potentially otherregisters, such as control registers, status registers, flag registers,etc. The registers may be storage locations or devices that may be usedto store data. The register set may often be physically located on diewith the execution unit. The registers may be visible from the outsideof the processor or from a programmer's perspective. For example,instructions may specify operands stored in the registers. Variousdifferent types of registers are suitable, as long as they are capableof storing and providing data as described herein. The registers may ormay not be renamed. Examples of suitable registers include, but are notlimited to, dedicated physical registers, dynamically allocated physicalregisters using register renaming, combinations of dedicated anddynamically allocated physical registers, etc. Alternatively, one ormore of the source and destination operands may be stored in a storagelocation other than a register, such as, for example, a location insystem memory (not shown in this figure).

Referring again to FIG. 2, an example embodiment of a bit rangeisolation operation is shown. The bit range isolation instructionindicates or specifies a source operand (SRC), in this particular casein one or more registers of the register set. To simplify the drawing,the illustrated source operand (SRC) is shown as having only eight bits,namely “10101010,” although often the operand may have more bits, suchas 16 bits, 32 bits, 64 bits, 128 bits, or some other number of bits.

The execution unit may receive the source operand (SRC). The executionunit may be enabled as a result of the bit range isolation instructionto perform a bit range isolation operation on the source operand (SRC),and to store a corresponding result in a destination operand (DEST)indicated or specified by the instruction. In this particular case, thedestination operand is stored in one or more registers of the registerset.

The result has a first range of bits 122 and a second range of bits 120.In this particular example, the first range of bits 122 is the threeleast significant (rightmost) bits, and the second range of bits 120 isthe five most significant (leftmost) bits, although this is only anexample.

In the first range of bits 122 each bit is identical in value to a bitin the source operand (SRC) in a corresponding position. The three leastsignificant or rightmost bits of the source operand (SRC) have the bitvalues “010,” and likewise the three least significant or rightmost bitsof the first range of bits in the destination operand (DEST) also havethe same identical bit values “010.”

In the second range of bits 120 all of the bits have a same value, inthis particular case all zero, regardless of values of bits of thesource operand in corresponding positions. The five most significantbits of the result in the destination operand (DEST) have the bit values“00000,” even though the five most significant or leftmost bits of thesource operand (SRC) have the bit values “10101.” In an alternateembodiment, all of the bits of the second range may all have the samevalue of one, namely “11111”. Notice that in this particular case threebits in the second range of bits each have a different value than a bitof the source operand in a corresponding position.

To avoid obscuring the description, a relatively simple instructionprocessing apparatus has been shown and described. It is to beappreciated that other embodiments may have a plurality of executionunits. For example, the apparatus may include multiple different typesof execution units, such as, for example, arithmetic units, arithmeticlogic units (ALUs), integer units, etc. At least one of these units maybe responsive to an embodiment of bit range isolation instruction asdisclosed herein. Still other embodiments may have multiple cores,logical processors, or execution engines. An execution unit operable toexecute a bit range isolation instruction as disclosed herein may beincluded within at least one, at least two, most, or all of the cores,logical processors, or execution engines.

The instruction processing apparatus may also optionally include one ormore other well-known components. For example, other embodiments mayoptionally include instruction fetch logic, pre-decode logic, schedulinglogic, re-order buffers, branch prediction logic, retirement logic,register renaming logic, and the like, or some combination thereof.These components may be implemented conventionally, or with minoradaptations that would be apparent to those skilled in the art based onthe present disclosure. Further description of these components is notneeded in order to understand the embodiments herein, although furtherdescription is readily available, if desired, in the public literature.There are literally numerous different combinations and configurationsof such components known in the arts. The scope is not limited to anyknown such combination or configuration. Embodiments may be implementedeither with or without such additional components.

In one or more embodiments, an embodiment of a bit range isolationinstruction may implicitly or impliedly indicate a first end of a rangeof bits of interest to be isolated. The implicitly or impliedlyindicated end may be ‘understood’ although ‘unexpressed’ through anexplicit value. The processor or other instruction processing apparatusmay recognize the bit range zeroing instruction through an opcode, orother unique instruction identifier, and understand that an end of arange of bits is inherent.

FIG. 3 illustrates a first example embodiment of a bit range isolationoperation according to a first example embodiment of a bit rangeisolation instruction that implicitly or impliedly indicates a first endof a range of bits of interest as a least significant bit (LSB). In theillustration, the least significant bit is the rightmost bit labeled“0”.

The bit range isolation instruction may implicitly indicate orexplicitly specify a source operand (SRC). In the illustratedembodiment, the source operand has 32-bits. Alternatively, the operandmay have 16-bits, 64-bits, 128-bits, or some other number of bits. Theparticular illustrated 32-bit source operand (SRC) stores the followingbits from left to right: “10100110100110110101100111010110.” Theseparticular bit values are for illustration purposes only, and are notrequired.

The bit range isolation instruction may also implicitly indicate orexplicitly specify a destination operand (DEST). The destination operand(DEST) has a result representing an example embodiment of a bit rangeisolation operation performed on the source operand (SRC) according tothe bit range isolation instruction. The result has a first range ofbits 322 of interest and a second range of cleared or discarded bits320.

The first range of bits 322 has a start at the implicit LSB first endand has an end, in this particular case, at the nineteenth bit. Thesecond range of bits, in this particular case, starts at the twentiethbit and ends at the most significant bit (MSB). The boundary between thefirst and second ranges may alternatively be at any other location.

In one or more embodiments, the bit range isolation instruction may alsoexplicitly specify, such as through a source operand or a constant orimmediate associated with the instruction, a value (e.g., a number ofbits representing a number) that indicates the end of the first range ofbits of interest. For example, the explicit value may represent aposition of a bit corresponding to the end as measured from an implicit,explicit, or otherwise understood point (for example the implicit leastsignificant bit end, the most significant bit, or the center bit). Asanother example, the value may represent a positive or negative lengthin bits from an implicit, explicit, or otherwise understood point (forexample the implicit least significant bit end, a most significant bit,a center bit, or a start of the range of bits of interest).

In the first range of bits 322 each bit is identical in value to a bitof the source operand in a corresponding position. In this particularexample, the nineteen least significant or rightmost bits of the sourceoperand (SRC) have the bit values “10110101100111010110,” and likewisethe nineteen least significant or rightmost bits of the first range ofbits 322 in the destination operand (DEST) also have the bit values“10110101100111010110.”

In the second range of bits 320 all of the bits have the same value,which in this particular case is zero. In this particular example, thetwelve most significant or leftmost bits of the source operand (SRC)have the bit values “101001101001,” whereas the twelve most significantbits of the second range of bits in the destination operand (DEST) allhave the bit values “000000000000”. Alternatively, all of the bits ofthe second range may have the same value of one (e.g., 111111111111).

It is to be appreciated that the bit indicated by the instruction mayeither be included in the first range of bits to be preserved or in thesecond range of bits to be zeroed or otherwise discarded. Eitherconvention may be adopted by the instruction.

As another option, in one or more embodiments, the bit range isolationinstruction may implicitly or impliedly indicate the first end of arange of bits of interest to be isolated as a most significant bit(MSB). In the illustrations, the most significant bit is the leftmostbit.

FIG. 4 illustrates a second example embodiment of a bit range isolationoperation according to a second example embodiment of a bit rangeisolation instruction that implicitly or impliedly indicates an end of arange of bits of interest as a most significant bit (MSB). In theillustration, the most significant bit (MSB) is the leftmost bit labeled“31.”

The second example embodiment has certain similarities with respect tothe first example embodiment described immediately above. For brevity,the discussion will tend to focus on the differences without repeatingthe similarities.

As before, the bit range isolation instruction may indicate or specify asource operand (SRC) and a destination operand (DEST). The destinationoperand (DEST) has a result including a first range of bits of interest422 and a second range of bits 420 zeroed or otherwise discarded.

The first range of bits 322 has an end at the implicit MSB and has astart, in this particular case, at the seventeenth bit. The second rangeof bits starts at the least significant bit (LSB) and ends, in thisparticular case, at the sixteenth bit. The boundary between the firstand second ranges may alternatively be at any other location.

In one or more embodiments, the bit range isolation instruction mayimplicitly indicate or explicitly specify, such as through a secondsource operand or an immediate of the instruction, a value thatindicates the start of the first range of bits. By way of example, thevalue may represent a position of a bit corresponding to the second endor a length in bits in which an end of the length corresponds to thesecond end.

In the first range of bits 422 each bit is identical in value to a bitof the source operand in a corresponding position. In this particularexample, the fifteen most significant or leftmost bits of the sourceoperand (SRC) have the bit values “101001101001101,” and likewise thefifteen most significant or leftmost bits of the first range of bits 422in the destination operand (DEST) also have the bit values“101001101001101.”

In the second range of bits 420 all of the bits have the same value,which in this particular case is zero. In this particular example, thesixteen least significant or rightmost bits of the source operand (SRC)have the bit values “10101100111010110,” whereas the sixteen leastsignificant bits of the second range of bits in the destination operand(DEST) all have the bit values “00000000000000000”. Alternatively, allof the bits of the second range may have the same value of one (e.g.,11111111111111111).

As yet another option, in one or more embodiments, the bit rangeisolation instruction may explicitly specify, such as through a secondsource operand and/or an immediate of the instruction, values thatindicate both ends of a range of bits of interest.

FIG. 5 illustrates a third example embodiment of a bit range isolationoperation according to a third example embodiment of a bit rangeisolation instruction that indicates or specifies both ends of a rangeof bits of interest. For brevity the discussion will tend to focus onthe differences relative to the preceding example embodiments withoutrepeating the similarities.

As before, the bit range isolation instruction may indicate or specify asource operand (SRC) and a destination operand (DEST). The destinationoperand (DEST) has a result including a first range of bits of interest522, a second range of unwanted bits 520, and an additional third rangeof unwanted bits 521.

As previously discussed, in the first range of bits 522 each bit isidentical in value to a bit of the source operand in a correspondingposition. In the second range of bits 520 all of the bits have the samevalue, which in this particular case is zero. Alternatively, ones may beused instead of zeros.

Likewise, in the third range of bits 521 all of the bits have the samevalue, which in this particular case is zero. Alternatively, the bitrange isolation instruction may zero or otherwise discard the mostsignificant bits of the second range, while not zeroing or discardingthe unwanted least significant bits in the third range. These unwantedleast significant bits of the third range may subsequently be discarded,if desired, with a subsequent shift right instruction, for example.

The values specifying the ends may each represent a position of a bit asmeasured from an implicit or otherwise understood point (for example theleast significant bit, the most significant bit, or the center bit), ora positive or negative length in bits from an implicit or otherwiseunderstood point (e.g., a least significant bit, a most significant bit,a center bit, or an end of the range of bits of interest). In oneparticular example embodiment, a first value may represent a bitposition of a start of the first range of bits of interest and a secondvalue may represent a length in bits from the starting bit positionrepresented by the first value.

Notice in FIGS. 3-5 that execution of the bit range isolationinstruction completes without shifting or otherwise moving the firstrange of bits of the result relative to the bits of identical value inthe corresponding positions of the source operand, regardless of thelocation of the first range of bits in the result. That is, no shiftoperation or other operation changing relative bit positions isperformed. If it is desired to shift the first range of bits, such as tojustify or align the first range of bits with the least significant bit,this may be performed by a subsequent instruction (e.g., a shift rightinstruction). Many ISAs have a suitable shift right instruction toperform such an operation.

FIGS. 3-5 illustrate several examples of suitable bit range isolationoperations and instructions. Still other embodiments will be apparent tothose skilled in the art and having the benefit of the presentdisclosure.

A bit range isolation instruction, according to one particular exampleembodiment, is a BZHI—Zero High Bits Starting with Specified BitPosition instruction. The BZHI instruction may have a standard 3-bytex86 opcode that may optionally have a REX prefix to address moreregisters and a wider data space. The instruction operand encoding forthe BZHI instruction is shown in Table 1.

TABLE 1 Operand 1 Operand 2 Operand 3 Operand 4 A ModRM:reg (R, W)ModRM:r/m (R) NA NA

Operand 1 is explicitly specified and may be in the 32-bitgeneral-purpose registers (reg) for the 32-bit mode, or in the 64-bitgeneral-purpose registers for the 64-bit mode. Read (R) and write (W)are allowed for Operand 1.

Operand 2 is explicitly specified and may be in the 32-bitgeneral-purpose registers (r), or memory (m), for the 32-bit mode, or inthe 64-bit general-purpose registers, or memory, for the 64-bit mode.Read (R) is allowed for Operand 2.

FIG. 6 shows a description of a BZHI instruction representing aparticular example embodiment of a bit range isolation or zeroinginstruction. The BZHI instruction copies bits of a second operand into adestination operand and sets to zero all higher order bits starting witha bit position specified by a number contained in the eight lower bitsof a first operand up to the maximum of the operand size. For BZHIinstruction the first operand is also used as the destination operandand the result overwrites the first operand.

The zero flag (ZF), carry flag (CF), and sign flag (SF) are updatedbased on the result. The carry flag (CF) is set if the number containedin the eight lower bits of the first operand is greater than the operandsize. In one aspect, the bit position in such cases may be taken as thedifference between the number contained in the eight lower bits of thefirst operand and the operand size. The overflow flag (OF) is cleared.The auxiliary carry flag (AF) and parity flag (PF) are undefined. Theseflags are shown in FIG. 11.

The default operand size is 32-bits. A 64-bit operand size is encodable.A prefix byte of 66H before the instruction will cause #UD.

FIG. 7 shows operation in pseudocode of a BZHI instruction representinga particular example embodiment of a bit range isolation or zeroinginstruction. SRC refers to the explicitly specified second sourceoperand having the data, DEST refers to a destination operand that isalso used as a first source operand used to store the bit position.OperandSize is 32-bits in 32-bit mode or 64-bits in 64-bit mode. CFrefers to the carry flag.

Other instructions are also contemplated. For example, it is notrequired to overwrite a source operant with a destination operand.Further description of opcodes, encoding, REX, and VEX prefixes, ifdesired, is available in Intel® 64 and IA-32 Architectures SoftwareDeveloper's Manual Volume 2A: Instruction Set Reference, A-M, OrderNumber: 253666-032US, September 2009.

To further illustrate certain concepts, consider how the BZHI hasutility in conjunction extracting bit fields. Such extraction of bitfields is useful, for example, in various data decompression compressionand decoding algorithms, such as, for example, Huffman, Rice, and Gammacoding, to name just a few examples. Commonly the start and end, orstart and length, of the range of bits of interest may be determinedduring runtime by a decoding algorithm. In some cases, the ranges ofbits of interest may have pre-defined and fixed lengths (e.g., lengths10:10:10:2). In other cases, the ranges of bits of interest may havevariable lengths, such as, for example, in the cases of Huffman, Rice,and Gamma coding. In any event, conventional approaches may be used todetermine the start and end, or start and length, of the range of bitsof interest.

In some algorithms, BZHI may be used in conjunction with a shift rightinstruction to isolate and right aligned or justified a bit field ofinterest with the least significant bit. As one example, when thedecoding algorithm calculates the start and end of a range of bits ofinterest, a BZHI instruction may be performed to zero bits of the datastarting with the end and store a result, and then subsequently a shiftright instruction may be performed to shift right the result of the BZHIinstruction by the start amount and zero extend the most significantbits shifted in. This may be shown as follows:

RESULT1=BZHI DATA, END

RESULT2=SHIFT_RIGHT RESULT1, START

As another example, when the decoding algorithm calculates the start andlength of the range of bits of interest, a shift right instruction maybe performed to shift right the data, zero extend the most significantbits shifted in, and store a result, and then subsequently a BZHIinstruction may be performed on the result of the shift rightinstruction to zero bits of the result more significant than the lengthand store a result. This may be shown as follows:

RESULT1=SHIFT_RIGHT DATA, START

RESULT2=BZHI RESULT1, LENGTH

Advantageously, this may eliminate one or more instructions per bitfield extract procedure, since there may be no need to compute thelengths if the decoding algorithm provides the starts of the range ofbits of interest.

When start and end, or start and length, of a bit range of interest aredetermined at runtime, the ability to use these values right away andextract a bit field with only two instructions, may provide anadvantage. Some ISAs are 2-source instruction set architectures thatallow only two operands to be explicitly specified for a singleinstruction. A universal bit field extract instruction with a variablestart and a variable end may need three inputs, namely starting data, astart and one of an end and a length. In some instances the variablestart and variable end (or length) of a range of bits may be provided bydifferent calculations and/or known at different times. In a 2-sourceISA, the start and either the end or the length may be pre-combined in asingle input. However, in some instances pre-combining these inputs maytake at least two additional instructions and may tend to increaseoverall latency. An instruction that may perform a bit range zeroingoperation without needing both the variable start and variable end (orlength) specified may offer a performance advantage. Accordingly,implicitly specifying a start with the bit range isolation instruction,and omitting the shift operation from the bit range isolationinstruction, may each offer a performance advantage.

The isolated and extracted bit fields may be used for various purposes,such as, for example, to put the extracted bit field into the data wordsize of the machine for further processing, to perform parallel scatteror deposit operations, etc. The scope of embodiments is not limited toany known such processing.

FIG. 8 is a block diagram of an example embodiment of bit rangeisolation logic 830. The bit range isolation logic may be included in anexecution unit and may be responsive to a bit range isolationinstruction.

The illustrated bit range isolation logic is for 32-bit operations. Thelogic may be readily expanded to perform 64-bit or larger operations.Additionally, the illustrated logic assumes an implicit start for arange of bits of interest at a least significant bit (LSB). Accordingly,the illustrated logic closely resembles the operation shown in FIG. 3.

The bit range isolation logic receives as input a 32-bit source operand832 and an 8-bit position value 834 that represents a bit position ofthe other end of the range of bits of interest.

The bit range isolation logic includes mask generation logic 836. Themask generation logic includes four 2:3 saturating decoders 838A-D. Eachof the 2:3 saturating decoders are coupled to receive the 8-bit positionvalue. Outputs of a first pair of the saturating decoders 838A-B arecoupled with inputs of a first 6:16 saturating decoder 840A. Outputs ofa second pair of the saturating decoders 838C-D are coupled with inputsof a second 6:16 saturating decoder 840B. The mask generation logic isoperable to generate a mask based on the 8-bit position value. In oneembodiment, the mask generation logic may generate a mask that has: (1)a first range of bits that each correspond to a bit in the range of bitsof interest in a corresponding position and that each have a value ofone; and (2) a second range of bits that each correspond to a bit in theunwanted range of bits not of interest in a corresponding position andthat each have a value of zero. For example, the mask may have ones fromthe implicit least significant bit (LSB) beginning of the range of bitsof interest up to the end of the range of bits of interest specified bythe 8-bit position value and zeros for all more significant bits.

A 32-bit mask register 842 is coupled with outputs of the first andsecond 6:16 saturating decoders to receive the mask. By way of example,the 32-bit mask may include a temporary register in logic.

The bit range isolation logic also includes bitwise operation logic 844.In one or more embodiments, the bitwise operation logic may include ANDlogic. Alternatively, the bitwise operation logic may include OR logic,XOR logic, or the like. The bitwise operation logic is coupled toreceive the 32-bit mask from the 32-bit mask register. The bitwiseoperation logic is also coupled to receive the 32-bit source operand.The bitwise operation logic is operable to perform the bitwise operationon the 32-bit source operand and the 32-bit mask.

In the case of AND operation logic, the bits of the 32-bit sourceoperand which are masked by ones in the mask may be reproducedidentically in the result, whereas the bits of the 32-bit source operandwhich are masked by zeros in the mask may all be cleared or set to zero.Such AND operation logic may be regarded as zero logic.

In the case of OR operation logic, the bits of the 32-bit source operandwhich are masked by ones in the mask may be reproduced identically inthe result, whereas the bits of the 32-bit source operand which aremasked by zeros in the mask may all be set to ones. Often it is moreuseful to clear the unwanted bits to zeros with AND operation logicinstead of setting them to ones with OR operation logic, although thereare instances where the OR operation logic offers an advantage.

A slight variation of the illustrated bit range isolation logic 830 mayallow an explicit flexible start position rather than an implicit leastsignificant bit (LSB) start. Optionally, the decoders 838A-D and thedecoders 840A-B may not be saturating decoders, and the explicit startposition may be added as an additional input into the non-saturatingdecoders. This may allow a bit range isolation operation that closelyresembles that shown in FIG. 5.

In one or more embodiments, registers of a general-purpose register setmay be used to store one or more source and/or destination operands. Tofurther illustrate certain concepts, example embodiments of suitablegeneral-purpose registers available in various Intel architectureprocessors will be discussed, although these particular registerscertainly are not required.

FIG. 9 illustrates one particular example embodiment of a suitable32-bit general-purpose register set 950. The 32-bit register setincludes eight 32-bit or doubleword general-purpose registers. Theseregisters are referred to as EAX, EBX, ECX, EDX, ESI, EDI, EBP, and ESP.These 32-bit registers are also addressable in 16-bit and 8-bit modes.The lower 16 bits of the EAX, EBX, ECX, and EDX registers are referredto as AX, BX, CX, and DX, respectively. By way of example, word unsignedintegers having 16-bits may be stored in the registers BX, CX, and DX,respectively. Doubleword unsigned integers having 32-bits may be storedin the registers EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP, R8D-R15D.

FIG. 10 illustrates another particular example embodiment of a suitable64-bit general-purpose register set 1052. The 64-bit register setincludes sixteen 64-bit or quadword general-purpose registers. Theseregisters are referred to as RAX, RBX, RCX, RDX, RSI, RDI, RBP, RSP, R8,R9, R10, R11, R12, R13, R14, and R15. These registers are operable in32-bit mode on 32-bit operands, and operable in 64-bit mode on 64-bitoperands. The lower 32-bits of the RAX, RBX, RCX, RDX, RSI, RDI, RBP,and RSP registers respectively correspond to the EAX, EBX, ECX, EDX,ESI, EDI, EBP, and ESP registers. The lower 32-bits of the registersR8-R15 are also addressable in 32-bit mode and are referred to byR8D-R15D. By way of example, quadword unsigned integers having 64-bitsmay be stored in the registers RAX, RBX, RCX, RDX, RSI, RDI, RBP, RSP,or R8-R15.

Additional description of the general purpose registers, if desired, isavailable in Intel® 64 and IA-32 Architectures Software Developer'sManual, Volume 1: Basic Architecture, Order Number: 253665-032US,September 2009. These particular registers are examples only, and arenot required.

FIG. 11 illustrates an EFLAGS register representing one suitable exampleembodiment of a status or flags register. This particular register andthese particular flags are not required.

The EFLAGS register is a 32-bit register that includes a group of statusflags, a control flag, and a group of system flags. The status flagsinclude a carry flag (CF, bit 0), a parity flag (PF, bit 2), anauxiliary carry flag (AF, bit 4), a zero flag (ZF, bit 6), a sign flag(SF, bit 7), and an overflow flag (OF, bit 11).

The system flags include a trap flag (TF, bit 8), an interrupt enableflag (IF, bit 9), an I/O privileged level (IOPL, bits 12-13), a nestedtask (NT, bit 14), a resume flag (RF, bit 16), a virtual-8086 mode (VM,bit 17), an alignment check (AC, bit 18), a virtual interrupt flag (VIF,bit 19), a virtual interrupt pending (VIP, bit 20), and an ID flag (ID,bit 21). The control flag includes a direction flag (DF, bit 10). Bits22-31 of EFLAGS are reserved.

The EFLAGS register is the successor to an earlier 16-bit FLAGSregister. Additionally, the EFLAGS register, in 64-bit mode processors,has been succeeded and extended to 64-bits by an RFLAGS register. Thelower 32-bits of RFLAGS is the same as EFLAGS. In each of the FLAGS,EFLAGS, and RFLAGS registers, the carry flag (CF) is bit 0. Additionaldescription of the EFLAGS/RFLAGS registers, and the carry flag, ifdesired, is available in Intel® 64 and IA-32 Architectures SoftwareDeveloper's Manual, Volume 1: Basic Architecture, Order Number:253665-032US, September 2009.

One or more embodiments include an article of manufacture that includesa tangible machine-accessible and/or machine-readable medium havingstored thereon a bit range isolation instruction that if executed by amachine (e.g., an execution unit) causes a bit range isolation operationas described elsewhere herein. The tangible medium may include one ormore solid materials. The medium may include, a mechanism that provides,for example stores, information in a form that is accessible by themachine. For example, the medium may optionally include recordablemediums, such as, for example, floppy diskette, optical storage medium,optical disk, CD-ROM, magnetic disk, magneto-optical disk, read onlymemory (ROM), programmable ROM (PROM), erasable-and-programmable ROM(EPROM), electrically-erasable-and-programmable ROM (EEPROM), randomaccess memory (RAM), static-RAM (SRAM), dynamic-RAM (DRAM), Flashmemory, and combinations thereof.

Suitable machines include, but are not limited to, execution units,general-purpose processors, special-purpose processors (e.g., graphicsprocessors and cryptographic processors), cryptographic accelerators,network communications processors, computer systems, network devices,modems, personal digital assistants (PDAs), cellular phones, and a widevariety of other electronic devices with one or more execution units, toname just a few examples.

Still other embodiments pertain to a computer system, embedded system,or other electronic device having an execution unit and/or performing amethod as disclosed herein.

FIG. 12 is a block diagram of a first example embodiment of a suitablecomputer system 1201.

The computer system includes a processor 1200. The processor includes atleast one execution unit 1206 that is capable of executing at least onebit range isolation instruction 1202.

The processor is coupled to a chipset 1281 via a bus (e.g., a front sidebus) or other interconnect 1280. The interconnect may be used totransmit data signals between the processor and other components in thesystem via the chipset.

The chipset includes a system logic chip known as a memory controllerhub (MCH) 1282. The MCH is coupled to the front side bus or otherinterconnect 1280.

A memory 1286 is coupled to the MCH. In various embodiments, the memorymay include a random access memory (RAM). DRAM is an example of a typeof RAM used in some but not all computer systems. As shown, the memorymay be used to store instructions 1287, such as one or more bit rangeisolation instructions, and data 1288.

A component interconnect 1285 is also coupled with the MCH. In one ormore embodiments, the component interconnect may include one or moreperipheral component interconnect express (PCIe) interfaces. Thecomponent interconnect may allow other components to be coupled to therest of the system through the chipset. One example of such componentsis a graphics chip or other graphics device, although this is optionaland not required.

The chipset also includes an input/output (I/O) controller hub (ICH)1284. The ICH is coupled to the MCH through hub interface bus or otherinterconnect 1283. In one or more embodiments, the bus or otherinterconnect 1283 may include a Direct Media Interface (DMI).

A data storage 1289 is coupled to the ICH. In various embodiments, thedata storage may include a hard disk drive, a floppy disk drive, aCD-ROM device, a flash memory device, or the like, or a combinationthereof.

A second component interconnect 1290 is also coupled with the ICH. Inone or more embodiments, the second component interconnect may includeone or more peripheral component interconnect express (PCIe) interfaces.The second component interconnect may allow various types of componentsto be coupled to the rest of the system through the chipset.

A serial expansion port 1291 is also coupled with the ICH. In one ormore embodiments, the serial expansion port may include one or moreuniversal serial bus (USB) ports. The serial expansion port may allowvarious other types of input/output devices to be coupled to the rest ofthe system through the chipset.

A few illustrative examples of other components that may optionally becoupled with the ICH include, but are not limited to, an audiocontroller, a wireless transceiver, and a user input device (e.g., akeyboard, mouse).

A network controller is also coupled to the ICH. The network controllermay allow the system to be coupled with a network.

In one or more embodiments, the computer system may execute a version ofthe WINDOWS™ operating system, available from Microsoft Corporation ofRedmond, Wash. Alternatively, other operating systems, such as, forexample, UNIX, Linux, or embedded systems, may be used.

This is just one particular example of a suitable computer system. Forexample, in one or more alternate embodiments, the processor may havemultiple cores. As another example, in one or more alternateembodiments, the MCH 1282 may be physically integrated on-die with theprocessor 1200 and the processor may be directly coupled with a memory1286 through the integrated MCH. As a further example, in one or morealternate embodiments, other components may be integrated on-die withthe processor, such as to provide a system-on-chip (SoC) design. As yetanother example, in one or more alternate embodiments, the computersystem may have multiple processors.

FIG. 13 is a block diagram of a second example embodiment of a suitablecomputer system 1301. The second example embodiment has certainsimilarities to the first example computer system described immediateabove. For clarity, the discussion will tend to emphasize thedifferences without repeating all of the similarities.

Similar to the first example embodiment described above, the computersystem includes a processor 1300, and a chipset 1381 having an I/Ocontroller hub (ICH) 1384. Also similarly to the first exampleembodiment, the computer system includes a first component interconnect1385 coupled with the chipset, a second component interconnect 1390coupled with the ICH, a serial expansion port 1391 coupled with the ICH,a network controller 1392 coupled with the ICH, and a data storage 1389coupled with the ICH.

In this second embodiment, the processor 1300 is a multi-core processor.The multi-core processor includes processor cores 1394-1 through 1394-M,where M may be an integer number equal to or larger than two (e.g. two,four, seven, or more). Each core may include at least one execution unitthat is capable of executing at least one embodiment of an instructionas disclosed herein. As shown, the core-1 includes a cache 1395 (e.g.,an L1 cache). Each of the other cores may similarly include a dedicatedcache. The processor cores may be implemented on a single integratedcircuit (IC) chip.

The processor also includes at least one shared cache 1396. The sharedcache may store data (e.g., instructions) that are utilized by one ormore components of the processor, such as the cores. For example, theshared cache may locally cache data stored in a memory 1386 for fasteraccess by components of the processor. In one or more embodiments, theshared cache may include one or more mid-level caches, such as level 2(L2), level 3 (L3), level 4 (L4), or other levels of cache, a last levelcache (LLC), and/or combinations thereof.

The processor cores and the shared cache are each coupled with a bus orother interconnect 1397. The bus or other interconnect may couple thecores and the shared cache and allow communication.

The processor also includes a memory controller hub (MCH) 1382. As shownin this example embodiment, the MCH is integrated with the processor1300. For example, the MCH may be on-die with the processor cores. Theprocessor is coupled with the memory 1386 through the MCH. In one ormore embodiments, the memory may include DRAM, although this is notrequired.

The chipset includes an input/output (I/O) hub 1393. The I/O hub iscoupled with the processor through a bus (e.g., a QuickPath Interconnect(QPI)) or other interconnect 1380. The first component interconnect 1385is coupled with the I/O hub 1393.

This is just one particular example of a suitable system. Other systemdesigns and configurations known in the arts for laptops, desktops,handheld PCs, personal digital assistants, engineering workstations,servers, network devices, network hubs, switches, embedded processors,digital signal processors (DSPs), graphics devices, video game devices,set-top boxes, micro controllers, cell phones, portable media players,hand held devices, and various other electronic devices, are alsosuitable. In general, a huge variety of systems or electronic devicescapable of incorporating a processor and/or an execution unit asdisclosed herein are generally suitable.

In the description above, for the purposes of explanation, numerousspecific details have been set forth in order to provide a thoroughunderstanding of the embodiments. It will be apparent however, to oneskilled in the art, that one or more other embodiments may be practicedwithout some of these specific details. The particular embodimentsdescribed are not provided to limit the scope but to illustrateembodiments of the invention. The scope of the invention is not to bedetermined by the specific examples provided above but only by theclaims below. In other instances, well-known circuits, structures,devices, and operations have been shown in block diagram form or withoutdetail in order to avoid obscuring the understanding of the description.Where considered appropriate, reference numerals or terminal portions ofreference numerals have been repeated among the figures to indicatecorresponding or analogous elements, which may optionally have similarcharacteristics.

Certain operations may be performed by hardware components, or may beembodied in machine-executable instructions, that may be used to cause,or at least result in, a circuit or hardware programmed with theinstructions performing the operations. The circuit may include ageneral-purpose or special-purpose processor, or logic circuit, to namejust a few examples. The operations may also optionally be performed bya combination of hardware and software. An execution unit and/or aprocessor may include specific or particular circuitry or other logicresponsive to a machine instruction or one or more control signalsderived from the machine instruction to store an instruction specifiedresult operand.

It should also be appreciated that reference throughout thisspecification to “one embodiment”, “an embodiment”, or “one or moreembodiments”, for example, means that a particular feature may beincluded in the practice of embodiments. Similarly, it should beappreciated that in the description various features are sometimesgrouped together in a single embodiment, Figure, or description thereoffor the purpose of streamlining the disclosure and aiding in theunderstanding of various inventive aspects. This method of disclosure,however, is not to be interpreted as reflecting an intention thatembodiments require more features than are expressly recited in eachclaim. Rather, as the following claims reflect, inventive aspects maylie in less than all features of a single disclosed embodiment. Thus,the claims following the Detailed Description are hereby expresslyincorporated into this Detailed Description, with each claim standing onits own as a separate embodiment of the invention.

What is claimed is:
 1. A hand held device comprising: a dynamic randomaccess memory; a memory controller coupled to the dynamic random accessmemory; a flash memory device to store data; a wireless transceiver; auser input device; a network controller to couple the hand held deviceto a network; a shared cache to store data; and a plurality of processorcores coupled to the memory controller and the shared cache, at leastone of the plurality of processor cores comprising: an L1 cache; aninstruction fetch logic; branch prediction logic; a plurality ofregisters including control registers, status registers, and 64-bitgeneral purpose registers, wherein a lower 32-bits of the 64-bit generalpurpose registers are addressable to operate on 32-bit operands, andwherein the status registers include a 32-bit register that is to have aplurality of bits associated with a group of status flags, the statusflags to include a carry flag, a zero flag, a sign flag, and an overflowflag; an instruction decoder to receive and decode a bit range isolationinstruction, the instruction to implicitly indicate a first end of arange of bits of interest, and, through an immediate associated with theinstruction, to explicitly specify as a bit position a second end of therange of bits of interest; and an execution unit to perform a bit rangeisolation operation on a source operand of the bit range isolationinstruction, the source operand to be stored in one of the 64-bitgeneral purpose registers, an encoding of the bit range isolationinstruction to indicate one of a plurality of source operand sizes,including a 32-bit operand size and a 64-bit operand size, the executionunit comprising: mask generation logic to generate a mask; and bitwiseoperation logic to receive the source operand and the mask, and toperform a bitwise operation on the source operand and the mask toproduce a result that is to include a first range of bits in which eachbit is to be identical in value to a bit of the source operand in acorresponding position, and a second range of bits more significant thanthe first range that are all to have a same value regardless of bitvalues in corresponding positions of the source operand, wherein it isimplicit to the bit range isolation instruction that the first range ofbits of the result is not moved in bit position relative to the bits ofthe identical values of the source operand, wherein it is implicit tothe bit range isolation instruction that the second range of bits areall to have the same value, and wherein the instruction allows the samevalue to be binary one.
 2. The hand held device of claim 1, wherein theat least one of the plurality of processor cores further comprisesregister renaming logic, scheduling logic, a re-order buffer, andretirement logic.
 3. The hand held device of claim 1, wherein the maskis to include a first range of bits that are each to correspond to a bitin the first range of bits of interest in a corresponding position andeach to have a first binary value, and a second range of bits that areeach to correspond to a bit in a range of bits not of interest in acorresponding position and that are each to have a second differentbinary value.
 4. The hand held device of claim 1, wherein execution ofthe bit range isolation instruction is to complete without shifting thefirst range of bits of the result.
 5. The hand held device of claim 1,further comprising a USB port to couple the hand held device toinput/output devices.
 6. The hand held device of claim 1, wherein theinstruction does not explicitly specify a start bit position where astart of the first range of bits is to be stored in the result.
 7. Ahand held device comprising: a dynamic random access memory; a memorycontroller coupled to the dynamic random access memory; a flash memorydevice to store data; a wireless transceiver; a user input device; anetwork controller to couple the hand held device to a network; a sharedcache to store data; and a plurality of processor cores coupled to thememory controller and the shared cache, at least one of the plurality ofprocessor cores comprising: an L1 cache; an instruction fetch logic;branch prediction logic; a plurality of registers including controlregisters, status registers, and 64-bit general purpose registers,wherein a lower 32-bits of the 64-bit general purpose registers areaddressable to operate on 32-bit operands, and wherein the statusregisters include a 32-bit register that is to have a plurality of bitsassociated with a group of status flags, the status flags to include acarry flag, a zero flag, a sign flag, and an overflow flag; aninstruction decoder to receive and decode a bit range isolationinstruction, the instruction to inflexibly indicate a first end of arange of bits of interest, and, through an immediate associated with theinstruction, to explicitly specify as a bit position a second end of therange of bits of interest; and an execution unit to perform a bit rangeisolation operation on a source operand of the bit range isolationinstruction, the source operand to be stored in one of the 64-bitgeneral purpose registers, an encoding of the bit range isolationinstruction to indicate one of a plurality of source operand sizes,including a 32-bit operand size and a 64-bit operand size, the executionunit comprising: mask generation logic to generate a mask; and bitwiseoperation logic to receive the source operand and the mask, and toperform a bitwise operation on the source operand and the mask toproduce a result that is to include a first range of bits in which eachbit is to be identical in value to a bit of the source operand in acorresponding position, and a second range of bits more significant thanthe first range that are all to have a same value regardless of bitvalues in corresponding positions of the source operand, wherein the bitrange isolation instruction does not explicitly specify a start bitposition where a start of the first range of bits is to be stored in theresult.
 8. The hand held device of claim 7, wherein the mask is toinclude a first range of bits that are each to correspond to a bit inthe first range of bits of interest in a corresponding position and eachto have a value of one, and a second range of bits that are each tocorrespond to a bit in a range of bits not of interest in acorresponding position and that are each to have a value of zero.
 9. Thehand held device of claim 7, wherein execution of the bit rangeisolation instruction is to complete without shifting the first range ofbits of the result.
 10. The hand held device of claim 7, wherein thesame value is a bit value of zero.
 11. The hand held device of claim 7,wherein the at least one of the plurality of processor cores furthercomprises register renaming logic, scheduling logic, a re-order buffer,and retirement logic.
 12. The hand held device of claim 7, furthercomprising a USB port to couple the hand held device to input/outputdevices.
 13. The hand held device of claim 7, wherein the instruction isto inflexibly indicate that the first range of bits of the result is tobe stored starting at a least significant bit of the result.
 14. A handheld device comprising: a dynamic random access memory; a memorycontroller coupled to the dynamic random access memory; a flash memorydevice to store data; a wireless transceiver; a user input device; anetwork controller to couple the hand held device to a network; a sharedcache to store data; and a plurality of processor cores coupled to thememory controller and the shared cache, at least one of the plurality ofprocessor cores comprising: an L1 cache; an instruction fetch logic;branch prediction logic; a plurality of registers including controlregisters, status registers, and 64-bit general purpose registers,wherein a lower 32-bits of the 64-bit general purpose registers areaddressable to operate on 32-bit operands, and wherein the statusregisters include a 32-bit register that is to have a plurality of bitsassociated with a group of status flags, the status flags to include acarry flag, a zero flag, a sign flag, and an overflow flag; aninstruction decoder to receive and decode a bit range isolationinstruction, the instruction to require a particular first end of arange of bits of interest, and, through an immediate associated with theinstruction, to explicitly specify as a bit position a second end of therange of bits of interest; and an execution unit to perform a bit rangeisolation operation on a source operand of the bit range isolationinstruction, the source operand to be stored in one of the 64-bitgeneral purpose registers, an encoding of the bit range isolationinstruction to indicate one of a plurality of source operand sizes,including a 32-bit operand size and a 64-bit operand size, the executionunit comprising: mask generation logic to generate a mask; and bitwiseoperation logic to receive the source operand and the mask, and toperform a bitwise AND operation on the source operand and the mask toproduce a result that is to include a first range of bits in which eachbit is to be identical in value to a bit of the source operand in acorresponding position, and a second range of bits more significant thanthe first range that are all to have a same value regardless of bitvalues in corresponding positions of the source operand, wherein theinstruction requires that the first range of bits of the result is to bestored starting at a least significant bit of the result, and whereinexecution of the bit range isolation instruction is to complete withoutshifting the first range of bits of the result.
 15. The hand held deviceof claim 14, wherein the mask is to include a first range of bits thatare each to correspond to a bit in the first range of bits of interestin a corresponding position and each to have a value of one, and asecond range of bits that are each to correspond to a bit in a range ofbits not of interest in a corresponding position and that are each tohave a value of zero.
 16. The hand held device of claim 14, wherein thesame value is a bit value of zero.
 17. The hand held device of claim 14,wherein the same value is a bit value of zero, and wherein the mask isto include bits that are to correspond to one of the bits of the secondrange of bits of the result which are all to have a value of zero. 18.The hand held device of claim 7, wherein the same value is allowed to bebinary one.
 19. The hand held device of claim 14, wherein the same valuecan be binary one for the instruction.